home *** CD-ROM | disk | FTP | other *** search
- X-Comm ARexx Manual
-
-
- This manual describes X-Comm's ARexx port and commands allowed.
- Because multiple versions of X-Comm can be run, each ARexx port for each
- version run will be called something different. The original ARexx port
- belonging to the first version run will be called 'X-Comm'. From then on,
- the ports will be called 'X-Comm.1', 'X-Comm.2' and so on.
-
- The first word in the command list is the actual ARexx command (Not
- case sensitive). If the command has any arguments, they will be listed in
- < > brackets after the command. After that, a description of the command
- will follow.
-
- X-Comm ARexx Command List
-
-
- XToFront - Brings X-Comm screen to front.
-
- WBToFront - Brings Workbench to Front.
-
- XGet <variable> - Gets information about the current X-Comm configuration.
- Please see the list on 'XGet/Set Variables' later on in
- this manual for a full list of available variables. An
- example may be:
-
- XGet "BaudRate" would put the current baudrate in
- 'result'.
-
- XClearWaitStrings - Clears the current waitstring list.
-
- XAddWaitString <string> - Adds a string to the waitstring list for use with
- the 'XWaitStringList' command.
-
- XStickBuffer - Sticks the X-Comm review buffer.
-
- XUnstickbuffer - Unsticks X-Comm review buffer.
-
- XOpenReview - Opens the X-Comm review buffer.
-
- XCloseReview - Closes the X-Comm review buffer.
-
- XFlushBuffer - Clears the X-Comm review buffer.
-
- XClearDial - Clears the X-Comm dial list.
-
- XRedial - Re-Dials the numbers in the dial list.
-
- XCloseCapture - Closes any opened capture files.
-
- XPrinterOn - Turns printer output on.
-
- XPrinterOff - Turns printer output off.
-
- XString <string> - Parses <string> through X-Comm's autoinsert parser and
- returns the output in 'result'. Things like '\n'
- (newline) and '\r' (carriage return) will be converted
- to proper ASCII and things like '%u' (username) will be
- properly converted. It is recommened that this
- function be used frequently to keep ARexx code clean
- (free of weird ASCII charcters.)
-
- XLoadBuffer <filename> - Loads <filename> into X-Comm's review buffer.
-
- XAppendBuffer <filename> - Appends <filename> to the X-Comm buffer.
-
- XSaveBuffer <filename> - Saves the review buffer to <filename>.
-
- XSleep <value> - Causes a delay of <value> * 0.02 seconds. The ARexx
- script will be halted during this time.
-
- XMacro <macro name> - Executes an X-Comm Macro by name.
-
- XAddDial <system name> - Adds <system name> to the dial list.
-
- XManualDial <number> - Manually dials <number> through the X-Comm dialer.
-
- XSystemDial <system name> - Clears the dial list and dials a single system
- name.
-
- XSystemSelect <system name> - Like the 'Select System' menu in 'Phonebook'.
- If you have a carrier present, you can tell
- X-Comm what system you are online to, and
- X-Comm will load all nessacery configurations
- that go with the system and set to all the
- nessacery settings.
-
- XOpenCapture <filename> - Opens a new capture file with the name <filename>
-
- XAppendCapture <filename> - Opens a capture file and appends it to the end
- of an existing file.
-
- XLoad <filetype> - Loads an X-Comm settings file depending on what
- <filetype> you pass. The file loaded will be the one
- X-Comm currently has set. Filetypes:
-
- Config - Current configuration.
- Rates - Current rates file.
- Macros - Current macros file.
- Diallist - Current X-Comm dial list.
- Phone - Current phonebook file.
- Filetypes - Current X-Comm filetypes file (Only
- valid in registered version of
- X-Comm).
-
- Note that the actual filenames to load can be set with
- XSet.
-
- XSave <filetype> - Same as XLoad, except it saves the file instead of
- loading it.
-
- XScreenPrint <string> - Outputs <string> to X-Comm's terminal. Does not
- get sent to the modem. Note: If you want X-Comm
- variables to be used in these strings then first
- format the string using the XString first. For
- example to display the time and date and current
- system name into the string the function calls
- would be:
-
- XString "%d %t %S"
- XScreenPrint result
-
- XSerialPrint <string> - Outputs <string> to the modem only. Charcater may
- get printed to the terminal if the system 'echos'
- the characters back. Note: If you want X-Comm
- variables to be used in these strings then first
- format the string using the XString first. For
- example to display the time and date and current
- system name into the string the function calls
- would be:
-
- XString "%d %t %S"
- XSerialPrint result
-
- XModemPrint <string> - Outputs <string> to the modem AND the terminal.
- This is usually only useful if the system doesn't
- echo charcters back (which isn't very often.) Most
- of the time, XSerialPrint will be the best command
- to use. Note: If you want X-Comm variables to be
- used in these strings then first format the string
- using the XString first. For example to display
- the time and date and current system name into the
- string the function calls would be.
-
- XString "%d %t %S"
- XModemPrint result
-
- XWaitStringList <timeout> - Waits for all the strings contained in the
- Wait String list (Set with XAddWaitString.)
- Will either wait for one of the strings to
- arrive through the serial port, or will wait
- for the timeout value to expire. If no
- timeout is specified, a default of 10
- seconds is applied. The timeout value is in
- seconds. If one of the strings being waited
- on arrives, this function will return the
- string it received in 'result'.
-
- XMenu <(menu#,item#,subitem#)> - This function executes one of X-Comm's
- menus. Menu# corresponds to the
- horizonal menu which the item is
- contained. Item# is the actually menu
- item number. Subitem# is the subitem
- that you may be referencing. Note that
- '~~~~~~~~~' break lines in the menu ARE
- counted as items. For example, to
- execute the 'Load Config / Load From...'
- menu item, you would put this line in
- your ARexx script:
-
- XMenu "(0,2,1)"
-
- remembering that '~~~~~~~~' are counted
- and all references are taken starting
- from 0.
-
- XSet <variable> <value> - Sets an X-Comm configuration item, similar to
- XGet. <item> corresponds to something
- like 'Baudrate' or 'Emulation'. Value is the
- value you would like it set to. Ie
-
- XSet "Baudrate" "2400"
-
- would set your current baudrate to 2400.
-
- See the later section on XGet/XSet variables.
-
- XWaitString <string> <timeout> - Waits for <string> for a specified
- <timeout> value. If the string is
- found, X-Comm will return the string in
- 'result'. If it times out, then ""
- (nothing) will be returned in result.
-
- XRequestChoice <Buttons> <String> - Opens a standard ReqTools Choice
- requester and displays <String> and
- the quiestion being asked. <String>
- can contain multiple words as long as
- the whole sentence is placed with in
- any standard ARexx delimiters (eg
- ',"). <Buttons> are the Names of the
- buttons that you wish to be placed on
- the requester, this should be in the
- form "Button_1|Button_2|...|Button_N"
- The Function will return the number
- of the gadget that was selected. Any
- of the arguments can be replaced by
- "-" to use a default value.
-
- XRequestFile <Path> <Pattern> <String> - This will being up a ReqTools file
- requester, with the default path
- set to the value of <Path>, the
- pattern gadget will use <Pattern>
- and the description stirng will be
- set to <String>. The Name of the
- file selected will be return in
- result. Any of the arguments can
- be replaced by "-" to use a
- default value.
-
- XRequestString <String> - This will bring up a ReqTools string gadget,
- using <String> as the Requester description.
- The string entered is returned in result.
- <String> may be replaced by "-" for the defualt
- value.
-
- XDownLoad <FileName> - This will start a download, using the default
- protocol. If this protocol is not batchable (ie
- XModem) then a filename should be given as the
- argument. Otherwise "-" must be given as the
- argument and the filename will be gotten
- automatically by the transfers.
-
- XUpload <FileName_1> ... - This will attemp a file transfer of all the
- files given as the arguments. If you are
- using a non-batchable protocol (ie XModem)
- then only the first file will be uploaded,
- otherwise all files will be sent. The
- filenames should be given one after the other,
- seperated by a space or any other valid ARexx
- argument seperator.
-
- XAsciiSend <FileName> - This will preform an ASCII Send of the <FileName>.
-
- XGetString <Character> - This functions read input from the serial device
- or local console until <character> is read. All
- data received up until and including <character>
- will be returned in result.
-
- XHangup - Hangs up the modem.
-
- XGet/XSet Variables
-
-
-
- This is a list of all the gettable and setable values in X-Comm.
- Each value usually corresponds to an entry in the configuration file.
-
- Please see the description of the XGet and XSet commands for more
- information. This is a list of the <variables> that can be used with both
- commands. Some commands are only valid in XGet however, and those commands
- will have a comment saying so.
-
- ARexxPath - The current ARexx path.
- FileTypesFile - The currently loaded filetypes filename (only valid in
- registered versions.)
- BaudRate - The current baudrate.
- BufferPath - Current Bufferpath.
- CapturePath - Current Capturefile path.
- ConfigPath - Current Configuration path.
- Databits - Number of data bits.
- Duplex - Duplex (full or half.)
- Downloadpath - Current download path.
- DisplayID - HEX value representing the current display mode
- in use. (Onlu in XGet)
- DisplayName - The name of the current display ID. (Only in XGet)
- Emulation - Current XEM Emulation library (if using one.)
- Handshaking - Handshaking mode (None, CTS/RTS or XON-XOFF.)
- LogfilePath - Current log files path.
- Macropath - Current macro files path.
- Macrofile - The currently loaded macro filename.
- Parity - Parity. (None, Odd, Even, Space or Mark.)
- Phonebookpath - Current phonebook path.
- Phonebookfile - Currently loaded phonebook filename.
- Protocol - Current XPR Protocol name
- PublicScreenName - Name of the public screen X-Comm is on. If X-Comm is on
- its own custom screen, the ScreenID of the screen will
- be returned.
- PublicScreen - Whether X-Comm is on a public screen or not. (ON/OFF)
- BackroundPattern - Whether or not the user has a backround pattern turned
- on.
- RateFile - Currently loaded call rates file.
- ScreenDepth - Depth of the current screen in bitplanes. (Between 1-8
- depending on machine and display mode.)
- SerialDevice - The currently used serial driver.
- SerialUnit - The unit of the serial driver in use.
- SerialShared - Whether the serial device is in shared mode. (ON/OFF)
- BufferStuck - If the review buffer window is in stuck mode. (ON/OFF)
- StopBits - Number of Stop bits in use.
- TermLeft - The Terminal window's left edge.
- TermTop - The Terminal window's top edge.
- TermWidth - The Terminal window's width (In pixels)
- TermHeight - The Terminal window's height (In pixels)
- TermType - Whether you're using the XEM libraries or the console device.
- ('XEM Libraries' or 'Console Device'.)
- TermBorder - Using a 3D border around the terminal window. (ON/OFF)
- PatternName - If using a backdrop pattern, this is the filename.
- TermShadow - Drop shadow under the terminal window. (ON/OFF)
- ScreenFont - The currently used Screen Font.
- ScreenFontSize - The currently used Screen Font Size.
- TermFont - The currently used Terminal Font.
- TermFontSize -The currently used Terminal Font Size.
- ModemInit - The current modem initialisation string.
- ModemHangup - The current modem hangup string.
- ModemConnect - The current modem CONNECT string.
- ModemBusy - The current modem BUSY string.
- ModemRing - The current modem RING string.
- ModemNoDialTone - The current modem NO DIALTONE string.
- ModemDialType - Whether 'Tone' or 'Pulse'.
- ModemDialPrefix1 - Currently set alternate dial prefix #1.
- ModemDialPrefix2 - Currently set alternate dial prefix #2.
- ModemDialPrefix3 - Currently set alternate dial prefix #3.
- CarrierCheck - Whether carrier checking is turned on. (ON/OFF)
- Titlebar - Whether the titlebar is enabled or not. (ON/OFF)
- UploadsPath - The current uploads path.
- FlashBeep - Whether X-Comm display will flash on beep. (ON/OFF)
- ToFrontBeep - Whether X-Comm comes to the front on a beep. (ON/OFF)
- UseSoundBeep - Whether X-Comm uses a a sound when beeping. (ON/OFF)
- BeepSound - Name of the beep sound filename in use (if at all.)
- ImmediateExit - Whether X-Comm will exit immediatly after selecting 'Quit'.
- (ON/OFF)
- SendString - The current anti-logoff send string.
- SendDelay - The current anti-logoff send delay.
- StripCaptureANSI - Whether ANSI strip filters are turned on. (ON/OFF)
- SwapDelBS - Whether the DEL and Backspace keys are swapped. (ON/OFF)
- VT100Cursor - Whether X-Comm remaps cursor keys to VT100 style control
- characters (ON/OFF)
- ASCIISendCharDelay - The current ASCII Send Charcter Delay.
- ASCIISendLineDelay - The current ASCII Send Line Delay.
- FileControlActive - If file control is disabled or not. Will be 'On' if
- file control is disabled.
- CreateIcons - Whether X-Comm will create icons for sucessfully downloaded
- files. (ON/OFF)
-